<?php $this->headScript()
    ->appendFile($this->layout()->staticBaseUrl . 'application/modules/Confession/externals/scripts/composer_confession.js') ?>

<script type="text/javascript">
  en4.core.runonce.add(function() {
    composeInstance.addPlugin(new Composer.Plugin.Confession({
      title: '<?php echo $this->string()->escapeJavascript($this->translate('Add Confession')) ?>',
      lang : {
        'cancel' : '<?php echo $this->string()->escapeJavascript($this->translate('cancel')) ?>',
      },
      requestOptions : {
        'url' :en4.core.baseUrl + 'core/link/preview'
      }
    }));
  });
</script>